package lib.self.fresco.renderer;

/**
 * description: 模糊渲染器
 * author: Steven Xiao
 * date: 2017/4/27
 */
public class BlurRenderer extends BaseRenderer {
    private int mBlueRadius = 15;//默认轻度模糊，速度快
    private int mIterations = 0;// 迭代次数，越大越魔化 (WTF)
    private boolean mIsCircle;//是否是圆形
    private int mCornerRadius;//圆角大小

    public BlurRenderer() {
    }

    public BlurRenderer(int blueRadius) {
        this.mBlueRadius = blueRadius;
    }

    public BlurRenderer(int blueRadius, int iterations) {
        this.mBlueRadius = blueRadius;
        this.mIterations = iterations;
    }

    public BlurRenderer(int blueRadius, int iterations, boolean isCircle) {
        this.mBlueRadius = blueRadius;
        this.mIterations = iterations;
        this.mIsCircle = isCircle;
    }

    public BlurRenderer(int blueRadius, int iterations, int cornerRadius) {
        this.mBlueRadius = blueRadius;
        this.mIterations = iterations;
        this.mCornerRadius = cornerRadius;
    }

    public int getBlueRadius() {
        return mBlueRadius;
    }

    public int getIterations() {
        return mIterations;
    }

    public boolean isCircle() {
        return mIsCircle;
    }

    public int getCornerRadius() {
        return mCornerRadius;
    }

}
